package com.zhiyou100.taxi.entity;

import java.io.Serializable;
import java.math.BigDecimal;

public class Dictionary implements Serializable {
    private BigDecimal dictionaryId;

    private String dictionaryName;

    private BigDecimal dictionaryType;

    private BigDecimal provinceId;

    private static final long serialVersionUID = 1L;

    public BigDecimal getDictionaryId() {
        return dictionaryId;
    }

    public void setDictionaryId(BigDecimal dictionaryId) {
        this.dictionaryId = dictionaryId;
    }

    public String getDictionaryName() {
        return dictionaryName;
    }

    public void setDictionaryName(String dictionaryName) {
        this.dictionaryName = dictionaryName == null ? null : dictionaryName.trim();
    }

    public BigDecimal getDictionaryType() {
        return dictionaryType;
    }

    public void setDictionaryType(BigDecimal dictionaryType) {
        this.dictionaryType = dictionaryType;
    }

    public BigDecimal getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(BigDecimal provinceId) {
        this.provinceId = provinceId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Dictionary other = (Dictionary) that;
        return (this.getDictionaryId() == null ? other.getDictionaryId() == null : this.getDictionaryId().equals(other.getDictionaryId()))
            && (this.getDictionaryName() == null ? other.getDictionaryName() == null : this.getDictionaryName().equals(other.getDictionaryName()))
            && (this.getDictionaryType() == null ? other.getDictionaryType() == null : this.getDictionaryType().equals(other.getDictionaryType()))
            && (this.getProvinceId() == null ? other.getProvinceId() == null : this.getProvinceId().equals(other.getProvinceId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDictionaryId() == null) ? 0 : getDictionaryId().hashCode());
        result = prime * result + ((getDictionaryName() == null) ? 0 : getDictionaryName().hashCode());
        result = prime * result + ((getDictionaryType() == null) ? 0 : getDictionaryType().hashCode());
        result = prime * result + ((getProvinceId() == null) ? 0 : getProvinceId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dictionaryId=").append(dictionaryId);
        sb.append(", dictionaryName=").append(dictionaryName);
        sb.append(", dictionaryType=").append(dictionaryType);
        sb.append(", provinceId=").append(provinceId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}